package com.sale.system.controller;

import com.sale.system.service.ISysInventoryAccountingService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 存货核算控制层
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/sys_inventory_accounting")
public class SysInventoryAccountingController {

    private final ISysInventoryAccountingService sysInventoryAccounting;

    /**
     * 获取该账套下的成本核算方法(1、移动平均法，2、先进先出法)
     */
    public int getCostAccountingMethod() {
        return sysInventoryAccounting.getCostAccountingMethod();
    }


}
